package com.cn.mmd.service;

import com.cn.mmd.mapper.CourseWeeklyMapper;
import com.cn.mmd.model.CourseWeekly;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/6/30 0030.
 */

@Service("courseWeeklyService")
public class CourseWeeklyServiceImpl implements CourseWeeklyService {

    @Autowired
    private CourseWeeklyMapper courseWeeklyMapper;

    @Override
    public int insertSelective(CourseWeekly record) {
        return courseWeeklyMapper.insertSelective(record);
    }

    @Override
    public CourseWeekly selectByAll(CourseWeekly courseWeekly) {
        return courseWeeklyMapper.selectByAll(courseWeekly);
    }

    @Override
    public List<CourseWeekly> selectList(String s) {
        return courseWeeklyMapper.selectList(s);
    }

    @Override
    public int updateByPrimaryKeySelective(CourseWeekly record) {
        return courseWeeklyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer courseweeklyid) {
        return courseWeeklyMapper.deleteByPrimaryKey(courseweeklyid);
    }

    @Override
    public int deleteByCouId(String couId) {
        return courseWeeklyMapper.deleteByCouId(couId);
    }

    @Override
    public List<CourseWeekly> selectByCondition(CourseWeekly courseWeekly){
        return courseWeeklyMapper.selectByCondition(courseWeekly);
    }
}
